<div> <image src="/images/rails.png" width="50px" height="60px" border=0> </image></div>
<h1>手术患者列表</h1>
<table id="fed">
  <tr>
    <th>住院号</th>
    <th>名称</th>
    <th>性别</th>
    <th>年龄</th>
    <th>病房</th>
    <th>床号</th>
    <th>病发症</th>
    <th>临床诊断</th>
    <th>icd码序列</th> 
    <th>血型</th>
    <th>拟输血量</th>
    <th>入院日期</th>
    <th>查看</th>
    <th>编辑</th>
    <th>删除</th>
  </tr>

<% @surger_patients.each do |surger_patient| %>
  <tr>
    <td><%=h surger_patient.surger_pat_code %></td>
    <td><%=h surger_patient.surger_pat_name %></td>
    <td><%=h surger_patient.surger_pat_sex %></td>
    <td><%=h surger_patient.surger_pat_age %></td>
    <td><%=h surger_patient.surger_pat_room %></td>
    <td><%=h surger_patient.surger_pat_bed %></td>
    <td><%=h surger_patient.surger_pat_comp %></td>
    <td><%=h surger_patient.surger_pat_digs %></td>
    <td><%=h surger_patient.surger_pat_icds %></td>
    <td><%=h surger_patient.surger_pat_boold_id %></td>
    <td><%=h surger_patient.surger_pat_booldmax %></td>
    <td><%=h surger_patient.surger_pat_date %></td>
    <td><%= link_to image_tag("light_bulb.png",:size=>"16x16",:border => 0),
                    surger_patient %></td>
    <td><%= link_to image_tag("edit.png",:size=>"16x16",:border => 0), edit_surger_patient_path(surger_patient) %></td>
    <td><%= link_to image_tag("delete_user.png",:size=>"16x16",:border => 0), surger_patient, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
  <% end %>

</table>

<br />

<%= link_to 'New surger_patient', new_surger_patient_path %>

